package com.ruoyi.finance.livestreaming.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 数字直播余额打赏记录
 * </p>
 *
 * @author wangmh
 * @since 2023-09-24
 */
@TableName("sz_play_tour_record")
@ApiModel(value = "SzPlayTourRecord对象", description = "数字直播余额打赏记录")
public class SzPlayTourRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("打赏人")
    @TableField("from_person")
    private Long fromPerson;

    @ApiModelProperty("被打赏人")
    @TableField("to_person")
    private Long toPerson;

    @ApiModelProperty("打赏金额")
    @TableField("money")
    private BigDecimal money;

    @ApiModelProperty("礼物id")
    @TableField("type")
    private Long type;

    @ApiModelProperty("礼物单价")
    @TableField("unit_price")
    private BigDecimal unitPrice;

    @ApiModelProperty("礼物数量")
    @TableField("count")
    private Integer count;

    @ApiModelProperty("打赏时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getFromPerson() {
        return fromPerson;
    }

    public void setFromPerson(Long fromPerson) {
        this.fromPerson = fromPerson;
    }
    public Long getToPerson() {
        return toPerson;
    }

    public void setToPerson(Long toPerson) {
        this.toPerson = toPerson;
    }
    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }
    public Long getType() {
        return type;
    }

    public void setType(Long type) {
        this.type = type;
    }
    public BigDecimal getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(BigDecimal unitPrice) {
        this.unitPrice = unitPrice;
    }
    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "SzPlayTourRecord{" +
            "id=" + id +
            ", fromPerson=" + fromPerson +
            ", toPerson=" + toPerson +
            ", money=" + money +
            ", type=" + type +
            ", unitPrice=" + unitPrice +
            ", count=" + count +
            ", createTime=" + createTime +
        "}";
    }
}
